From 9ff53e8d1a25540885f5e0e10517abe7f7d559b3 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 14 Jan 2010 09:42:06 +0000 Subject: [PATCH] libxenlight: add error in disk_add if phystype is not recognized Signed-off-by: Vincent Hanquez --- tools/libxl/libxl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index ede485b111..909bd173f0 100644 --- a/tools/libxl/libxl.c +++ b/tools/libxl/libxl.c @@ -1162,6 +1162,9 @@ int libxl_device_disk_add(struct libxl_ctx *ctx, uint32_t domid, libxl_device_di device.backend_kind = DEVICE_TAP; break; + default: + XL_LOG(ctx, XL_LOG_ERROR, "unrecognized disk physical type: %d\n", disk->phystype); + return ERROR_INVAL; } flexarray_set(back, boffset++, "frontend-id"); -- 2.30.2